package com.kono.controlller;

import com.kono.pojo.Stu;
import com.kono.service.StuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/stu")
public class StuController {

    @Autowired
    StuService stuService;

    @RequestMapping("/findAll")
    public List<Stu> findAll(){

        return stuService.list();
    }

}
